package com.cqrt.mapper;

import com.cqrt.entity.AuthorityManagementDO;
import com.cqrt.vo.ProjectTypeGroupVO;
import com.ty.basic.entity.org.UserDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * @Author：lotus
 * @DATE: 2025/7/16 21:19
 */
@Mapper
public interface AuthorityManagementMapper {

    void insertAuthority(@Param("do") AuthorityManagementDO authorityManagementDO);

    void updateAuthority(@Param("do") AuthorityManagementDO authorityManagementDO);

    List<AuthorityManagementDO> selectAllAuthority();

    void deleteAuthority(@Param("oid") BigInteger oid);

    List<AuthorityManagementDO> selectAuthorityByUid(@Param("uid") BigInteger uid);

    List<UserDO> selectAuthorityUser(String userName);

    List<String> selectAuthorityProjectType();

    List<ProjectTypeGroupVO> selectAuthorityProjectIbaAttr();

}
